<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class kst_barcode extends MY_Controller {
	
	function __construct()
	{
		parent::__construct(); 	
		// Secure Page With Session
		$this->secure_session();
	}
	
	function index()
		{
		$data['bar'] = $this->input->post('bar');
		$this->load->view('barcode/barcode_view',$data);
		}

	function barcode($barcode) 
     {
 
        $this->load->library('zend');
        $this->zend->load('Zend/Barcode');
        Zend_Barcode::render('code39', 'image', array('text' => $barcode), array());
     } //End of Barcode generation function
	
	function output() 
     {
        $data['bar'] = $this->input->post('bar');
		$this->load->view('barcode/output',$data);
     }
}
?>